package com.wuye.repository;


import com.wuye.model.option.QuestionForm;
import com.wuye.model.option.UserAnswers;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by jiawenlong on 2016/8/1.
 */
public interface UserAnswersRepository extends PagingAndSortingRepository<UserAnswers, Long> {

    List<UserAnswers> findByUserIdAndQuestionnaireId(String userId,long questionnaireId);

    List<UserAnswers> findByQuestionnaireId(long questionnaireId);
}